const base = { weight: '50kg', age: 18, hobby: ['eating', 'drinking'] }

const Bob = { ...base, hobby: [...base.hobby] } // 注意：关键在这里！需要手动展开嵌套对象

Bob.age = 20
Bob.hobby.push('coding')

console.log(base) //=> { weight: '50kg', age: 18, hobby: [ 'eating', 'drinking' ] }
console.log(Bob) //=> { weight: '50kg', age: 20, hobby: [ 'eating', 'drinking', 'coding' ] }
